<?php
/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-02 19:53
 */

namespace App\Controller\Admin\Diy;

use App\Controller\Admin\BaseController;
use App\Service\Diy\DiyService;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-02 19:54
 * @ApiController(prefix="admin/diy/diy")
 */
class DiyController extends BaseController
{
    /**
     * @Inject()
     * @var DiyService
     */
    protected $diyService;

    /**
     * @Notes:【】
     * @User: zwc
     * @Date: 2022-05-02 19:54
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $data = $this->diyService->lists();
        _SUCCESS($data);
    }
}